﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Usering
{
    class Dbinit : System.Data.Entity.DropCreateDatabaseAlways<Admin3000DbContext>
    {
        protected override void Seed(Admin3000DbContext context)
        {
            context.Users.Add(new Entity.user
            {
                UserName = "灵",
                Password = "123456",
                IsActived = true,
                IsDeleted = false,
                CreatedTime = DateTime.Now,
                UpdateTime = DateTime.Now
            });
            base.Seed(context);
        }
    }
}
